#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int firstUniqChar(string s) {
        int coutt = 0;
        string::iterator it = s.begin();
        while (it != s.end())
        {
            string::iterator pos = s.begin();
            while (pos != s.end())
            {
                if (it != pos && *it == *pos)
                    break;
                pos++;


                if (pos == s.end())
                {
                    return coutt;
                }
            }
            it++;
            coutt++;
        }
        return -1;
    }
};